package com.example.base.base;

import android.content.Context;

import com.example.base.base.base1.BaseView;
import com.example.base.http.ActivityLifeCycleEvent;

import io.reactivex.rxjava3.subjects.PublishSubject;
import rx.subscriptions.CompositeSubscription;

/**
 * @author Administrator
 * @createTime 2019/9/30 11:59
 */
public class BasePresenter2<T extends BaseView>{
    protected Context mContext;
    protected T       mView;

    /***
     * 销毁时退出异步任务
     */
    protected CompositeSubscription mSubscriptions;

    public final PublishSubject<ActivityLifeCycleEvent> lifecycleSubject = PublishSubject.create();

    public void onStart(){

    }
}
